import 'package:flutter/material.dart';
import '/utils/setting.dart';

// 封装普通的分割线
class DividerLine extends StatelessWidget {
  final double? indent;
  final double? endIndent;
  final double? thickness;
  final Color? color;
  const DividerLine({
    super.key,
    this.indent = 4,
    this.endIndent = 4,
    this.thickness = 1,
    this.color = DefaultColor.primary,
  });

  @override
  Widget build(BuildContext context) {
    return Divider(
      thickness: thickness,
      indent: indent,
      endIndent: endIndent,
      color: color,
      height: 0,
    );
  }
}
